package com.mspbots.rule.queue.timeentry;

import com.mspbots.cw.request.TenantTimeEntryDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Dinnes Zhang
 * @date 12:32 2019/10/28
 **/
@Slf4j
@Component
public class RemoteSupportAfterTravelQueue extends TimeEntryBaseQueue {
    private static final String RULE_NAME = "RemoteSupportAfterTravel";

    @RabbitListener(queues = "trigger.timeEntry.RemoteSupportAfterTravel")
    public void onQueue(TenantTimeEntryDTO tenantTimeEntryDTO) {
        super.onRule(RULE_NAME, tenantTimeEntryDTO);
    }
}
